const mysql = require('mysql');
const config = {
    host: "127.0.0.1",
    user: "root",
    password: "123456",
    database: "expressdemo",
    port: "3306"
}
const connection = mysql.createConnection({...config})
// 与数据库建立连接
connection.connect();

module.exports = connection;
